AM_CFLAGS = $(GLIB_CFLAGS) $(GIO_CFLAGS) -g
AM_CFLAGS += `pkg-config --cflags glib-2.0 gio-unix-2.0 libusb-1.0`
AM_LDFLAGS = `pkg-config --libs glib-2.0 gio-unix-2.0 libusb-1.0`
AM_CPPFLAGS = -I$(top_srcdir)/private-include
 
BUILT_SOURCES = ofprint-generated.c ofprint-generated.h
dist_noinst_DATA = ofilm.oms.Ofprint.xml
 
bin_PROGRAMS = ofprint-serverd
 
ofprint_serverd_SOURCES = ofprint-server.c app_fp256_360.c usb_device.c ofprint_common.c upgrade.c\
	ofprint-generated.c ofprint-generated.h 
ofprint_serverd_LDADD = $(GLIB_LIBS) $(GIO_LIBS)
 
ofprint-generated.c ofprint-generated.h : ofilm.oms.Ofprint.xml
	gdbus-codegen  --interface-prefix=ofilm.oms. --generate-c-code=ofprint-generated $<

MOSTLYCLEANFILES = $(BUILT_SOURCES)
